package com.emm.yixun.common.exception;

public class YXUNCheckedException extends RuntimeException {

	/**
	 */
	private static final long serialVersionUID = 1L;
	private String code;
	private String outMsg;
	private String busMsg;

	public String getOutMsg() {
		return outMsg;
	}

	public YXUNCheckedException() {
		super();
	}

	public YXUNCheckedException(Throwable e) {
		super(e);
	}

	public YXUNCheckedException(String errorCode) {
		super();
		this.code = errorCode;
	}

	public YXUNCheckedException(String code, Throwable e) {
		super(XFUNExceptionCode.getOutMsg(code), e);
		this.code = code;
	}

	public YXUNCheckedException(String busMsg, String code, String outMsg) {
		super(outMsg);
		this.outMsg = outMsg;
		this.code = code;
		this.busMsg = busMsg;
	}

	public YXUNCheckedException(String busMsg, String code, String outMsg, Throwable e) {
		super(outMsg, e);
		this.outMsg = outMsg;
		this.code = code;
		this.busMsg = busMsg;
	}

	public String getCode() {
		return code;
	}

	public String getBusMsg() {
		return busMsg;
	}

}
